import request from '@/utils/request'

// 查询实有单位ID列表
export function listUnits(query) {
  return request({
    url: '/system/units/list',
    method: 'get',
    params: query
  })
}

// 查询实有单位ID详细
export function getUnits(id) {
  return request({
    url: '/system/units/' + id,
    method: 'get'
  })
}

// 新增实有单位ID
export function addUnits(data) {
  return request({
    url: '/system/units',
    method: 'post',
    data: data
  })
}

// 修改实有单位ID
export function updateUnits(data) {
  return request({
    url: '/system/units',
    method: 'put',
    data: data
  })
}

// 删除实有单位ID
export function delUnits(id) {
  return request({
    url: '/system/units/' + id,
    method: 'delete'
  })
}
